import request from '@/utils/request'

// 面经列表
export function acrticleAPI (params) {
  return request({
    method: 'GET',
    url: '/h5/interview/query',
    params: params
  })
}

// 面经详情
export function detailAPI (id) {
  return request({
    method: 'GET',
    url: '/h5/interview/show',
    params: {
      id: id
    }
  })
}

// 点赞、收藏、取消点赞、取消收藏
export function collAndLikeAPI (data) {
  return request.post('/h5/interview/opt', data)
}

// 收藏、点赞列表
export function collLikeListAPI (params) {
  return request({
    method: 'GET',
    url: '/h5/interview/opt/list',
    params: params
  })
}
